export default (state= {name: 'xiaohua', age: '18'}, action) => {
    switch (action.type) {
        case 'newName':
            return {
                ...state,
                name: action.name
            }
        default:
            return state
    }
}